﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wxappEdit.aspx.cs" Inherits="MxWeiXinPF.Web.admin.wxapp.wxappEdit" %>



<%@ Import Namespace="MxWeiXinPF.Common" %>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
    <title>编辑小程序</title>
<%=PageJSAndStype("edit").ToString() %>
    <script type="text/javascript">
        $(function () {
            //初始化表单验证
            $("#form1").initValidform();

              //初始化上传控件
        $(".upload-img").InitUploader({ filesize: "<%=siteConfig.imgsize %>", sendurl: "../../tools/upload_ajax.ashx", swf: "../../scripts/webuploader/uploader.swf", filetypes: "<%=siteConfig.fileextension %>" });
       
        $(".upload-album").InitUploader({ btntext: "批量上传", multiple: true, water: true, thumbnail: true, filesize: "<%=siteConfig.imgsize %>", sendurl: "../../tools/upload_ajax.ashx", swf: "../../scripts/webuploader/uploader.swf" });


            $("#ddlWxAppList").change(function () {
                window.location.href = "wxappEdit.aspx?id=" +$(this).val();
            });


        });
    </script>
</head>

<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="wxapplist.aspx" class="back"><i class="iconfont icon-up"></i><span>返回小程序列表</span></a>
          <i class="arrow iconfont icon-arrow-right"></i>
            <span>编辑小程序</span>
        </div>
        <div class="line10"></div>
        <!--/导航栏-->

        <!--内容-->
<div id="floatHead" class="content-tab-wrap">
  <div class="content-tab">
    <div class="content-tab-ul-wrap">
                    <ul>
                        <li><a href="javascript:;" onclick="tabs(this);" class="selected">编辑小程序内容</a></li>
                      
                    </ul>
                </div>
            </div>
        </div>

        <div class="tab-content">
            <dl>
                <dt>小程序名称</dt>
                <dd>
                    <asp:HiddenField ID="hidid" runat="server" Value="0" />
                    <div class="rule-single-select">
                        <asp:DropDownList ID="ddlWxAppList"   runat="server" datatype="*1-2" sucmsg=" "></asp:DropDownList>
                    </div>

                     <span class="Validform_checktip">*</span>
                </dd>
            </dl>

             <dl>
                <dt>查看要求</dt>
                <dd>
                    <asp:TextBox ID="txtwxappRequirement" runat="server" CssClass="input normal" datatype="*1-50" sucmsg=" " Text="" />
                    <span class="Validform_checktip">*请不要多于50字!</span>
                </dd>
            </dl>


              <dl>
                <dt>示例图</dt>
                <dd>
                   
                    <div class="upload-box upload-album"></div>
                    <input type="hidden" name="hidFocusPhoto" id="hidFocusPhoto" runat="server" class="focus-photo" />
                    <div class="photo-list">
                        <ul>
                            <asp:Repeater ID="rptAlbumList" runat="server">
                                <ItemTemplate>
                                    <li>
                                        <input type="hidden" name="hid_photo_name" value="<%#Eval("id")%>|<%#Eval("attachUri")%>" />
                                        <input type="hidden" name="hid_photo_remark" value="<%#Eval("remark")%>" />
                                        <div class="img-box" onclick="setFocusImg(this);">
                                            <img src="<%#Eval("attachUri")%>" bigsrc="<%#Eval("attachUri")%>" />
                                            <span class="remark"><i><%#Eval("remark").ToString() == "" ? "暂无描述..." : Eval("remark").ToString()%></i></span>
                                        </div>
                                        <a href="javascript:;" onclick="setRemark(this);">描述</a>
                                        <a href="javascript:;" onclick="delImg(this);">删除</a>
                                    </li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>



                </dd>
            </dl>
           

            <dl>
                <dt>体验二维码</dt>
                <dd>
                    <asp:Image ID="imgtyQRPic" runat="server"  Style="max-height: 80px;" /><br />
                    <asp:TextBox ID="txttyQRPic" runat="server" CssClass="input normal upload-path" />
                    <div class="upload-box upload-img"></div>
                    <span class="Validform_checktip">*</span>
                    
                </dd>
            </dl>
            <dl>
                <dt>小程序简介</dt>
                <dd>
                     <asp:TextBox ID="txtwxappBrief" runat="server" CssClass="input" TextMode="MultiLine" datatype="*0-255" sucmsg=" "></asp:TextBox>
                    <span class="Validform_checktip">*</span>
                </dd>
            </dl>

              <dl>
                <dt>使用有效期</dt>
                <dd>
                    <div class="rule-single-select">
                        <asp:DropDownList ID="ddlValidYear" runat="server" datatype="*" sucmsg=" ">
                            <asp:ListItem Value="1" Text="一年"  Selected="true"></asp:ListItem>
                             <asp:ListItem Value="2" Text="二年"></asp:ListItem>
                             <asp:ListItem Value="3" Text="三年"></asp:ListItem>
                        </asp:DropDownList>
                    </div>
                    <span class="Validform_checktip">*</span>
                </dd>
            </dl>

            <dl>
                <dt>原价</dt>
                <dd>
                    <asp:TextBox ID="txtoldPrice" runat="server" CssClass="input normal" Text="" datatype="*1-10" sucmsg=" " />/年
                    <span class="Validform_checktip">*</span>
                </dd>
            </dl>

            <dl>
                <dt>现折扣价</dt>
                <dd>
                    <asp:TextBox ID="txtcurrPrice" runat="server" CssClass="input normal" datatype="*0-10" sucmsg=" " Text=""  />/年
                    <span class="Validform_checktip">*</span>
                </dd>
            </dl>

          
             <dl  >
                <dt>状态</dt>
                <dd>
                    <div class="rule-multi-radio">
                        <asp:RadioButtonList ID="rblStatus" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Value="1" Selected="True">上架</asp:ListItem>
                            <asp:ListItem Value="2">下架</asp:ListItem>
                            
                        </asp:RadioButtonList>
                    </div>
                </dd>
            </dl>

        </div>
         
        <!--/内容-->

        <!--工具栏-->
        <div class="page-footer">
            <div class="btn-list">
                <asp:Button ID="btnSubmit" runat="server" Text="保存" CssClass="btn" OnClick="btnSubmit_Click" />
                <a href="wxapplist.aspx"><span class="btn yellow">返回上一页</span></a>

            </div>
            <div class="clear"></div>
        </div>
        <!--/工具栏-->
    </form>
</body>
</html>
